package sv.gob.mh.dgii.model;

// Generated Dec 12, 2007 1:25:05 PM by Hibernate Tools 3.2.0.CR1

import java.util.Date;
import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * ImImprentSusp generated by hbm2java
 */
@Entity
@Table(name = "IM_IMPRENT_SUSP", schema = "IMPRENTAS")
public class ImImprentSusp implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -8700006575239920040L;
	private ImImprentSuspId id;
	private DcImprenta dcImprenta;
	private String mtipoMovim;
	private String cusuario;
	private Date fhingreso;
	private String sobservacion;

	public ImImprentSusp() {
	}

	public ImImprentSusp(ImImprentSuspId id, DcImprenta dcImprenta,
			String cusuario) {
		this.id = id;
		this.dcImprenta = dcImprenta;
		this.cusuario = cusuario;
	}

	public ImImprentSusp(ImImprentSuspId id, DcImprenta dcImprenta,
			String mtipoMovim, String cusuario, Date fhingreso,
			String sobservacion) {
		this.id = id;
		this.dcImprenta = dcImprenta;
		this.mtipoMovim = mtipoMovim;
		this.cusuario = cusuario;
		this.fhingreso = fhingreso;
		this.sobservacion = sobservacion;
	}

	@EmbeddedId
	@AttributeOverrides( {
			@AttributeOverride(name = "iindice", column = @Column(name = "I_INDICE", nullable = false, precision = 18, scale = 0)),
			@AttributeOverride(name = "fhmovimiento", column = @Column(name = "FH_MOVIMIENTO", nullable = false, length = 7)) })
	public ImImprentSuspId getId() {
		return this.id;
	}

	public void setId(ImImprentSuspId id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "I_INDICE", nullable = false, insertable = false, updatable = false)
	public DcImprenta getDcImprenta() {
		return this.dcImprenta;
	}

	public void setDcImprenta(DcImprenta dcImprenta) {
		this.dcImprenta = dcImprenta;
	}

	@Column(name = "M_TIPO_MOVIM", length = 1)
	public String getMtipoMovim() {
		return this.mtipoMovim;
	}

	public void setMtipoMovim(String mtipoMovim) {
		this.mtipoMovim = mtipoMovim;
	}

	@Column(name = "C_USUARIO", nullable = false, length = 30)
	public String getCusuario() {
		return this.cusuario;
	}

	public void setCusuario(String cusuario) {
		this.cusuario = cusuario;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "FH_INGRESO", length = 7)
	public Date getFhingreso() {
		return this.fhingreso;
	}

	public void setFhingreso(Date fhingreso) {
		this.fhingreso = fhingreso;
	}

	@Column(name = "S_OBSERVACION", length = 50)
	public String getSobservacion() {
		return this.sobservacion;
	}

	public void setSobservacion(String sobservacion) {
		this.sobservacion = sobservacion;
	}

}
